<%@page import="wt.workflow.engine.WfProcess"%>
<%@page import="wt.fc.ReferenceFactory"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ page import="wt.util.WTProperties"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<%
	String baseUrll =(WTProperties.getLocalProperties()).getProperty("wt.server.codebase",
			"")+"/";
%>
<base id='basehref' href="<%=baseUrll%>" />
 <LINK REL=stylesheet HREF="netmarkets/css/windchill-base.css" TYPE="text/css">
<LINK REL=stylesheet HREF="netmarkets/javascript/ext/resources/css/ext-sandbox.css" TYPE="text/css">
<LINK REL=stylesheet id="theme0" HREF="netmarkets/themes/windchill/xtheme-windchill.css" TYPE="text/css">
<script type="text/javascript" src="netmarkets/javascript/ext/adapter/ext/ext-base.js"></script>
<script type="text/javascript" src="netmarkets/javascript/ext/ext-all.js"></script>
<script type="text/javascript" src="core-ui/2.0/lib/jquery.min.js"></script>
<script type="text/javascript" src="netmarkets/javascript/ext/ux/BufferView.js"></script>
<script type="text/javascript" src="netmarkets/javascript/ext/ux/LockingGridView.js"></script>
<script type="text/javascript" src="netmarkets/javascript/ext/ux/statusbar/StatusBar.js"></script>

<title></title>
</head>
<body>
	<div id="basicsInfo">11111111111</div>
	<div id="bop-change">22222222222</div>
	<span id="complete-btn" style="margin-top: 10px;margin-right: 10px;float: right;"></span>
	<span id="cancle-btn" style="margin-top: 10px;margin-right: 10px;float: right;"></span>
	<span id="previous-step" style="margin-top: 10px;margin-right: 10px;float: right;"></span>
	<input type="text" value=""  id='hiddenState' />
</body>



<script type="text/javascript">
		Ext.onReady(function(){
/* 			var genderStore = Ext.create("Ext.data.Store", {
			    fields: ["Name", "Value"],
			    data: [
			        { Name: "男", Value: 1 },
			        { Name: "女", Value: 2 }
			    ]
			});

			var form = Ext.create("Ext.form.FormPanel", {
			    layout: "column",
			    title: "用户信息",
			    border: false,
			    margin: "10",
			    width: 800,
			    defaultType: "textfield",
			    fieldDefaults: { labelAlign: 'right', labelWidth: 80, margin: "5 0", columnWidth: 0.3, msgTarget: "qtip", selectOnFocus: true },
			    items: [
			        { name: "UserName", fieldLabel: "姓名", allowBlank: false },
			        {
			            xtype: "combobox",
			            name: "Gender",
			            fieldLabel: "性别",
			            store: genderStore,
			            editable: false,
			            displayField: "Name",
			            valueField: "Value",
			            emptyText: "--请选择--",
			            queryMode: "local"
			        }
			    ],
			    renderTo: Ext.getBody()
			}); */
			
			var comb1Store =  new Ext.data.SimpleStore({
                fields : ['SHOWNAME', 'VALUE'],
                data : [['北京', '0'], ['上海', '111'], ['广州', '122'], ['深圳', '133'], 
                        ['武汉', '144'], ['厦门1', '155'], ['厦门200', '166']
                , ['厦门2',	 '1']
                , ['厦门3',	 '2']
                , ['厦门4',	 '3']
                , ['厦门5',	 '4']
                , ['厦门6',	 '5']
                , ['厦门7',	 '6']
                , ['厦门8',	 '7']
                , ['厦门9',	 '8']
                , ['厦门10',	 '9']
                , ['厦门11',	 '10']
                , ['厦门12',	 '11']
                , ['厦门13',	 '12']
                , ['厦门14',	 '13']
                , ['厦门15',	 '14']
                , ['厦门16',	 '15']
                , ['厦门17',	 '16']
                , ['厦门18',	 '17']
                , ['厦门19',	 '18']
                , ['厦门20',	 '19']
                , ['厦门21',	 '20']
                , ['厦门22',	 '21']
                , ['厦门23',	 '22']
                , ['厦门24',	 '23']
                , ['厦门25',	 '24']
                , ['厦门26',	 '25']
                , ['厦门27',	 '26']
                , ['厦门28',	 '27']
                , ['厦门29',	 '28']
                , ['厦门30',	 '29']
                , ['厦门31',	 '30']
                , ['厦门32',	 '31']]
            });
			
			
			var selectValue;
			var selectName;
			
			var comb1 = new Ext.form.ComboBox({
			mode : 'local',//本地数据
			store : comb1Store,
			width : 300,   
			displayField : 'SHOWNAME',
			valueField : 'VALUE',
			fieldLabel : '类型',
			renderTo:'complete-btn',
			typeAhead:false,
			 triggerAction: 'all',
			 multiSelect: true ,
			 listeners: {
                 // 焦点离开时获取下拉框选中值
                 blur: function () {
                     selectValue = comb1.getValue();
                     document.getElementById("hiddenState").value = selectValue+"," +document.getElementById("hiddenState").value ;
                 },
                 afterrender: function (comb1) {
                    var value = document.getElementById("hiddenState").value;
　　　　　　　　　　var stateValues = value.split(',');
                    if (document.getElementById("hiddenState").value != "undefined" && document.getElementById("hiddenState").value != "") {
                    	alert("stateValues:" + stateValues);
　　　　　　　　　　　　comb1.setValue(stateValues);
                     }
                 }
             } 
			});
			
			comb1.setValue(15);
		});
</script>
 
 </html>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
